﻿using Avalon.Core.Data;
using System;

namespace Avalon.Core.MVC.Attributes
{
    [AttributeUsage(AttributeTargets.Property)]
    public class FieldTypeAttribute : Attribute
    {
        /// <summary>
        /// The field type of the control
        /// </summary>
        public FieldType FieldType { get; set; }

        /// <summary>
        /// ctor
        /// </summary>
        /// <param name="fieldType">The field type</param>
        public FieldTypeAttribute(FieldType fieldType)
        {
            this.FieldType = fieldType;
        }
    }
}
